/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2022-12-18 20:46:46
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-14 14:52:58
 */
import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('organization.dept.name'),
    prop: 'deptName',
    width: 'auto',
    fixed: true,
    align: 'center'
  },
  {
    label: i18n.t('organization.dept.code'),
    prop: 'deptCode',
    width: 'auto',
    fixed: true,
    align: 'center'
  },
  {
    label: i18n.t('organization.dept.shortName'),
    prop: 'shortName',
    width: 'auto',
    fixed: true,
    align: 'center'
  },
  {
    label: i18n.t('organization.dept.sort'),
    prop: 'sort',
    width: 'auto',
    align: 'center'
  },
  {
    label: i18n.t('organization.dept.toStart'),
    prop: 'state',
    align: 'center'
  }
]

export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'upms:dept:update'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'upms:dept:delete'
  }
]
